//
// Created by wkm on 2023-12-03.
//

#ifndef MYSYSTEMCLEARNING_BASIC_FF_H
#define MYSYSTEMCLEARNING_BASIC_FF_H

#include "systemc.h"

SC_MODULE(basic_ff) {
    sc_in<bool> d, clk;
    sc_out<bool> q;

    void prc_basic_ff();

    SC_CTOR(basic_ff) {
        SC_METHOD(prc_basic_ff);
        sensitive_pos << clk;
    }
};

#endif //MYSYSTEMCLEARNING_BASIC_FF_H
